Bring master's README in line with develop's - #1114
Conversation
`Ruff (format)` fails on master, and any pull request into master shows a red `lint (3.10)` for a reason unrelated to it. The file is README.md. The linters job installs ruff unpinned. Recent versions format Python code blocks inside Markdown, which they did not use to, so the quickstart snippets now differ from what the formatter produces: single quotes in one call, a call split across three lines that fits on one, and two blocks indented two spaces rather than four. Taken from develop rather than by running the formatter here. develop is already formatted this way, and its README and master's differ by exactly this change, so copying it leaves the two identical and removes the conflict the next release sync would otherwise carry. Verified byte for byte. Whitespace and quotes only; no snippet behaves differently when run. This does not stop it recurring. The job takes whatever ruff is newest, so the next widening of the formatter's scope lands the same way. Pinning it would be the fix for that, and is a separate change. Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>
|
Sorry @thc1006 but we cannot accept this PR since it is targeting to master branch. If develop is correct, we should wait until the next release to update the master branch |
|
Understood, and that rule makes sense of a few things I had been reading as problems. I had taken the red on It also explains why #1105 and #1112 kept moving to Nothing outstanding here from me. |
Reopening #1113 against
master, which is the only branch it applies to. Retargeting it todevelopleft nothing to apply, and I did not say why clearly enough at the time.Ruff (format)fails onmasterright now, and any pull request intomastershows a redlint (3.10)for a reason that has nothing to do with it. Checked against both branches with the ruff CI installs:develop's README is already formatted this way. The diff between the two READMEs is exactly this change, which is why moving the pull request across made it a no-op.So this takes develop's file rather than running the formatter again. The result is byte for byte identical to
develop, which means the next release sync has nothing to reconcile here instead of carrying a conflict.Whitespace and quotes only: single quotes in one call, a call split across three lines that fits on one, and two blocks indented two spaces rather than four. No snippet behaves differently when run.
Why it drifted. The linters job installs ruff unpinned, and recent versions format Python code blocks inside Markdown. That will happen again on whatever the formatter widens to next, on a branch that was green and without a commit to explain it. Pinning ruff in
linters.ymlis the durable fix and is its own change; happy to send it if you want it.One thing to expect: this pull request will show a single check. The
pathsfilters mean a README-only change runs the docs build and nothing else, so the linters job that would confirm the fix does not run on the change that makes it. It runs on the next thing to touchmaster, which is #1112.